#pragma once
#include <SFML\Graphics.hpp>
#include "Colision.h"
#include "ShootMachine.h"


class Player
{


	public:
		Player(void);
		void update(sf::Time);
		void draw(sf::RenderWindow*);
		void KeyPressed(sf::Event::KeyEvent);
		void KeyReleased(sf::Event::KeyEvent);
		void inicializePlanszaColision(sf::RectangleShape*);

	public:
		sf::RectangleShape PlayerShape;
		Rotacion PlayerRotacion;

	private:
		sf::RenderWindow *mWindow;

		bool moveLeft;
		bool moveRight;
		bool moveUp;
		bool moveDown;

		const float playerSpeed;

		sf::Texture mPlayerTexture;

		bool bShoot;
		ShootMachine mShooter;

		Colision mColision;
		
};

